package com.ruoyi.web.controller.parking;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.entity.Car;
import com.ruoyi.entity.Order;
import com.ruoyi.service.ICarService;
import com.ruoyi.service.IOrderService;
import com.ruoyi.vo.order.OrderPageVo;
import com.ruoyi.vo.order.OrderQueryVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 《智慧停车系统》--订单表 前端控制器
 * </p>
 *
 * @author 贾玉亮
 * @since 2022-11-14
 */
@RestController
@RequestMapping("/order")
public class OrderController{

    @Resource
    private IOrderService orderServiceImpl;

    /**
     * 根据订单编号,车牌号码,时间,订单状态查询订单分页数据
     */
    @ApiOperation("订单分页")
    @PostMapping("/list")
    public AjaxResult QueryOrderPage(@RequestBody OrderQueryVo orderQueryVo){
        return AjaxResult.success("操作成功",orderServiceImpl.queryOrderList(orderQueryVo));
    }





}

